package com.hxzy.mapper;

import com.hxzy.entity.OrderDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 11452
* @description 针对表【order_detail(订单明细表)】的数据库操作Mapper
* @createDate 2023-08-28 11:54:55
* @Entity com.hxzy.entity.OrderDetail
*/
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {

    /**
     * 根据订单号查询详情
     * @param orderId
     * @return
     */
    @Select(value = "select name from order_detail where order_id=#{orderId}")
    List<String> findByOrderId(Long orderId);
}




